import tui from '../../../../common/httpRequest'
Page({
  changeAvatar(){
    wx.chooseImage({
      count: 1,
      sizeType: ['original', 'compressed'],
      sourceType: ['album', 'camera'],
      success: res => {
        const tempFilePaths = res.tempFilePaths[0];
        tui.href('/pages/extend/cropper-default/cropper-default?src=' + tempFilePaths);
      }
    });
  },
  nickname(){
    tui.href("../nickname/nickname")
  }
 
})